package com.victor.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.victor.entity.poi.PoiPhoto;
import com.victor.entity.poi.PoiSubmit;

public interface PoisubmitService {
	/**
	 * 添加poi
	 * @param poiSubmit
	 * @return
	 */
	boolean addPoi(PoiSubmit poiSubmit);
	/**
	 * 添加poi图片
	 * @param poiPhoto
	 * @return
	 */
	boolean insertPoiPhoto(PoiPhoto poiPhoto);
	/**
	 * 查询详情
	 * @param id
	 * @return
	 */
	PoiSubmit selById(Integer id);
	/**
	 * 修改poi
	 * @param poiSubmit
	 * @return
	 */
	boolean update(PoiSubmit poiSubmit);
	/**
	 * poi首页 后台
	 * @param row
	 * @param page
	 * @param search
	 * @param flag
	 * @return
	 */
	PageInfo<PoiSubmit> selAllOrSearchOrFlag(int row, int page, String search, String flag);
	/**
	 * 查询所有
	 * @return
	 */
	List<PoiSubmit> selAll();

}
